import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const DECO_HDM_PROJ: AppRouteRecordRaw = {
  path: '/deco-hdm-proj',
  name: 'DecoHdmProj',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '项目中心',
    requiresAuth: true,
    icon: 'icon-dashboard',
    order: 0,
  },
  children: [
    {
      path: '/deco-hdm-proj-project',
      name: 'DecoHdmProjProject',
      component: () => import('@/views/deco/hdm-proj/project/list/index.vue'),
      meta: {
        locale: '项目管理',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: '/deco-hdm-proj-alteration',
      name: 'DecoHdmProjAlteration',
      component: () => import('@/views/deco/hdm-proj/alteration/list/index.vue'),
      meta: {
        locale: '工程变更',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: '/deco-hdm-proj-duration',
      name: 'DecoHdmProjDuration',
      component: () => import('@/views/deco/hdm-proj/duration/list/index.vue'),
      meta: {
        locale: '工期管理',
        requiresAuth: true,
        roles: ['*'],
      },
    },
  ],
};

export default DECO_HDM_PROJ;
